package com.sunwayworld.basemodule.common.auditrecord.resource.impl;

import com.sunwayworld.basemodule.common.auditrecord.resource.LimsAuditRecordResource;
import com.sunwayworld.basemodule.common.auditrecord.service.LimsAuditRecordService;
import com.sunwayworld.framework.log.annotation.Log;
import com.sunwayworld.framework.log.annotation.LogModule;
import com.sunwayworld.framework.log.annotation.LogType;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.spring.annotation.GikamBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@LogModule("通用审核记录")
@RestController
@GikamBean
public class LimsAuditRecordResourceImpl implements LimsAuditRecordResource {
    @Autowired
    private LimsAuditRecordService auditRecordService;

    @Override
    public LimsAuditRecordService getService() {
        return auditRecordService;
    }
    
    
    @Log(value = "新增通用审核记录", type = LogType.INSERT)
    @Override
    @RequestMapping(method = RequestMethod.POST)
    public Long insert(RestJsonWrapperBean wrapper) {
        return getService().insert(wrapper);
    }
}
